<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: E:/knet-git/knet/knet/ip_filter.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>结构体</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e74998c9a9305a116abc25fcf9a1edb.html">knet-git</a></li><li class="navelem"><a class="el" href="dir_a1c045b39f32066568ae964b52db514f.html">knet</a></li><li class="navelem"><a class="el" href="dir_f76d03789f0b12416cfffea59e2ed47d.html">knet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">结构体</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">ip_filter.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;ctype.h&gt;</code><br />
<code>#include &quot;<a class="el" href="a00070_source.html">ip_filter_api.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00106_source.html">trie_api.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00045_source.html">address.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00054_source.html">channel_ref.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
结构体</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html">_ip_filter_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ac995e6dca31c96a79f1e774afd3946f6"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00069_ac995e6dca31c96a79f1e774afd3946f6.html#ac995e6dca31c96a79f1e774afd3946f6">_trim</a> (char *ip, int size)</td></tr>
<tr class="memdesc:ac995e6dca31c96a79f1e774afd3946f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">去除字符串起始和结束的空白  <a href="a00069_ac995e6dca31c96a79f1e774afd3946f6.html#ac995e6dca31c96a79f1e774afd3946f6">更多...</a><br /></td></tr>
<tr class="separator:ac995e6dca31c96a79f1e774afd3946f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59e99e08e50dba322d5a644387f9b31e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00069_a59e99e08e50dba322d5a644387f9b31e.html#a59e99e08e50dba322d5a644387f9b31e">_ip_filter_for_each_func</a> (const char *ip, void *param)</td></tr>
<tr class="memdesc:a59e99e08e50dba322d5a644387f9b31e"><td class="mdescLeft">&#160;</td><td class="mdescRight">遍历函数  <a href="a00069_a59e99e08e50dba322d5a644387f9b31e.html#a59e99e08e50dba322d5a644387f9b31e">更多...</a><br /></td></tr>
<tr class="separator:a59e99e08e50dba322d5a644387f9b31e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga14e6d1c3709870a082f203c8ba0ca9f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_ga14e6d1c3709870a082f203c8ba0ca9f4.html#ga14e6d1c3709870a082f203c8ba0ca9f4">knet_ip_filter_create</a> ()</td></tr>
<tr class="memdesc:ga14e6d1c3709870a082f203c8ba0ca9f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">建立IP过滤器  <a href="a00116_ga14e6d1c3709870a082f203c8ba0ca9f4.html#ga14e6d1c3709870a082f203c8ba0ca9f4">更多...</a><br /></td></tr>
<tr class="separator:ga14e6d1c3709870a082f203c8ba0ca9f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae2d8c7b5356b36261f90f59bc49181e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_gae2d8c7b5356b36261f90f59bc49181e1.html#gae2d8c7b5356b36261f90f59bc49181e1">knet_ip_filter_destroy</a> (<a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *ip_filter)</td></tr>
<tr class="memdesc:gae2d8c7b5356b36261f90f59bc49181e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁IP过滤器  <a href="a00116_gae2d8c7b5356b36261f90f59bc49181e1.html#gae2d8c7b5356b36261f90f59bc49181e1">更多...</a><br /></td></tr>
<tr class="separator:gae2d8c7b5356b36261f90f59bc49181e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga044a4fc59ee0910af3c2d030e025c536"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_ga044a4fc59ee0910af3c2d030e025c536.html#ga044a4fc59ee0910af3c2d030e025c536">knet_ip_filter_load_file</a> (<a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *ip_filter, const char *path)</td></tr>
<tr class="memdesc:ga044a4fc59ee0910af3c2d030e025c536"><td class="mdescLeft">&#160;</td><td class="mdescRight">加载IP过滤文件  <a href="a00116_ga044a4fc59ee0910af3c2d030e025c536.html#ga044a4fc59ee0910af3c2d030e025c536">更多...</a><br /></td></tr>
<tr class="separator:ga044a4fc59ee0910af3c2d030e025c536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga271a51fad46aa61d322b6c9da2d5ba1e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_ga271a51fad46aa61d322b6c9da2d5ba1e.html#ga271a51fad46aa61d322b6c9da2d5ba1e">knet_ip_filter_add</a> (<a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *ip_filter, const char *ip)</td></tr>
<tr class="memdesc:ga271a51fad46aa61d322b6c9da2d5ba1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加单个IP  <a href="a00116_ga271a51fad46aa61d322b6c9da2d5ba1e.html#ga271a51fad46aa61d322b6c9da2d5ba1e">更多...</a><br /></td></tr>
<tr class="separator:ga271a51fad46aa61d322b6c9da2d5ba1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae03dc5307ec374e375c2313d27dd08ad"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_gae03dc5307ec374e375c2313d27dd08ad.html#gae03dc5307ec374e375c2313d27dd08ad">knet_ip_filter_remove</a> (<a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *ip_filter, const char *ip)</td></tr>
<tr class="memdesc:gae03dc5307ec374e375c2313d27dd08ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">删除单个IP  <a href="a00116_gae03dc5307ec374e375c2313d27dd08ad.html#gae03dc5307ec374e375c2313d27dd08ad">更多...</a><br /></td></tr>
<tr class="separator:gae03dc5307ec374e375c2313d27dd08ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1425a397cc96d8a1cdf32bff3f1fe645"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_ga1425a397cc96d8a1cdf32bff3f1fe645.html#ga1425a397cc96d8a1cdf32bff3f1fe645">knet_ip_filter_save</a> (<a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *ip_filter, const char *path)</td></tr>
<tr class="memdesc:ga1425a397cc96d8a1cdf32bff3f1fe645"><td class="mdescLeft">&#160;</td><td class="mdescRight">保存到文件  <a href="a00116_ga1425a397cc96d8a1cdf32bff3f1fe645.html#ga1425a397cc96d8a1cdf32bff3f1fe645">更多...</a><br /></td></tr>
<tr class="separator:ga1425a397cc96d8a1cdf32bff3f1fe645"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6d722330898e2a29a8555d711aab8b01"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_ga6d722330898e2a29a8555d711aab8b01.html#ga6d722330898e2a29a8555d711aab8b01">knet_ip_filter_check</a> (<a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *ip_filter, const char *ip)</td></tr>
<tr class="memdesc:ga6d722330898e2a29a8555d711aab8b01"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查IP是否被过滤  <a href="a00116_ga6d722330898e2a29a8555d711aab8b01.html#ga6d722330898e2a29a8555d711aab8b01">更多...</a><br /></td></tr>
<tr class="separator:ga6d722330898e2a29a8555d711aab8b01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa42afdd4af32db13227e991ad457f229"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_gaa42afdd4af32db13227e991ad457f229.html#gaa42afdd4af32db13227e991ad457f229">knet_ip_filter_check_address</a> (<a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *ip_filter, <a class="el" href="a00056_a44e99fab0348ec54cfee119ddd9ceed6.html#a44e99fab0348ec54cfee119ddd9ceed6">kaddress_t</a> *address)</td></tr>
<tr class="memdesc:gaa42afdd4af32db13227e991ad457f229"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查IP是否被过滤  <a href="a00116_gaa42afdd4af32db13227e991ad457f229.html#gaa42afdd4af32db13227e991ad457f229">更多...</a><br /></td></tr>
<tr class="separator:gaa42afdd4af32db13227e991ad457f229"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae44a5a6a2fc4cb6e86ae5fda52dff9d6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00116_gae44a5a6a2fc4cb6e86ae5fda52dff9d6.html#gae44a5a6a2fc4cb6e86ae5fda52dff9d6">knet_ip_filter_check_channel</a> (<a class="el" href="a00056_a1c0c604eecd86fc8895cf4bbbba566af.html#a1c0c604eecd86fc8895cf4bbbba566af">kip_filter_t</a> *ip_filter, <a class="el" href="a00056_a3b7e82599367eade261456f60ebe2cd9.html#a3b7e82599367eade261456f60ebe2cd9">kchannel_ref_t</a> *channel)</td></tr>
<tr class="memdesc:gae44a5a6a2fc4cb6e86ae5fda52dff9d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查IP是否被过滤  <a href="a00116_gae44a5a6a2fc4cb6e86ae5fda52dff9d6.html#gae44a5a6a2fc4cb6e86ae5fda52dff9d6">更多...</a><br /></td></tr>
<tr class="separator:gae44a5a6a2fc4cb6e86ae5fda52dff9d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 27日 星期一 14:33:20 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
